package com.rongke.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.rongke.mapper.WithdrawalsMapper;
import com.rongke.model.Withdrawals;
import com.rongke.service.WithdrawalsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @WithdrawalsServiceImpl
 * @提现ServiceImpl
 * @version : Ver 1.0
 */
@Service
public class WithdrawalsServiceImpl extends ServiceImpl<WithdrawalsMapper, Withdrawals> implements WithdrawalsService {

    @Autowired
    private WithdrawalsMapper withdrawalsMapper;

    /**
     * @根据条件查找提现
     * @param withdrawals
     * @return
     */
    @Override
    public List<Withdrawals> selectByCondition(Withdrawals withdrawals) {
        return withdrawalsMapper.selectByCondition(withdrawals);
    }

    @Override
    public List<Withdrawals> selectWithdrawalsList(Map map) {
        return withdrawalsMapper.selectWithdrawalsList(map);
    }

    @Override
    public Integer selectWithdrawalsListSize(Map map) {
        return  withdrawalsMapper.selectWithdrawalsListSize(map);
    }
}
